package com.ble.bean;

import java.util.Arrays;

public class CmdEntity {
    private int type;
    private int adress;
    private int data;
    private byte[] bydata;

    public CmdEntity() {

    }

    public CmdEntity(int type, int adress, int data) {
        this.adress = adress;
        this.data = data;
        this.type = type;
    }
    public CmdEntity(int type, int adress, int data, byte[] bydata) {
        this.adress = adress;
        this.data = data;
        this.type = type;
        this.bydata = bydata;
    }

    public byte[] getBydata() {
        return bydata;
    }

    public void setBydata(byte[] bydata) {
        this.bydata = bydata;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getAdress() {
        return adress;
    }

    public void setAdress(int adress) {
        this.adress = adress;
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }


    @Override
    public String toString() {
        return "CmdEntity{" +
                "type=" + type +
                ", adress=" + adress +
                ", data=" + data +
                ", bydata=" + Arrays.toString(bydata) +
                '}';
    }
}
